Global Principal Typing in Partially Commutative Asynchronous Sessions
نویسندگان
چکیده
We generalise a theory of multiparty session types for the π-calculus through asynchronous communication subtyping, which allows partial commutativity of actions with maximal flexibility and safe optimisation in message choreography. A sound and complete algorithm for the subtyping relation, which can calculate conformance of optimised end-point processes to an agreed global specification, is presented. As a complementing result, we show a type inference algorithm for deriving the principal global specification from end-point processes which is minimal with respect to subtyping. The resulting theory allows a programmer to choose between a top-down and a bottom-up style of communication programming, ensuring the same desirable properties of typable processes.
منابع مشابه
Session typing and asynchronous subtyping for the higher-order π-calculus
This paper proposes a session typing system for the higher-order π-calculus(the HOπ-calculus) with asynchronous communication subtyping, which al-lows partial commutativity of actions in higher-order processes. The systemenables two complementary kinds of optimisation of communication code,mobile code and asynchronous permutation of session actions, within pro-cesses tha...
متن کاملOn the Cubical Homology Groups of Free Partially Commutative Monoids
We study a Leech homology of a locally bounded free partially commutative monoid M(E, I). Given a contravariant natural system of abelian groups F on M(E, I) we build a precubical set T (E, I) with a homological system of abelian groups F and prove that the Leech homology groups Hn(M(E, I), F ) are isomorphic to the cubical homology groups Hn(T (E, I), F ), n > 0. As a consequence we have confi...
متن کاملThe principal ideal subgraph of the annihilating-ideal graph of commutative rings
Let $R$ be a commutative ring with identity and $mathbb{A}(R)$ be the set of ideals of $R$ with non-zero annihilators. In this paper, we first introduce and investigate the principal ideal subgraph of the annihilating-ideal graph of $R$, denoted by $mathbb{AG}_P(R)$. It is a (undirected) graph with vertices $mathbb{A}_P(R)=mathbb{A}(R)cap mathbb{P}(R)setminus {(0)}$, where $mathbb{P}(R)$ is...
متن کاملSession-Based Communication Optimisation for Higher-Order Mobile Processes
In this paper we solve an open problem posed in our previous work on asynchronous subtyping [12], extending the method to higher-order session communication and functions. Our system provides two complementary methods for communication code optimisation, mobile code and asynchronous permutation of session actions, within processes that utilise structured, typed communications. In order to prove...
متن کاملOn Commutative Reduced Baer Rings
It is shown that a commutative reduced ring R is a Baer ring if and only if it is a CS-ring; if and only if every dense subset of Spec (R) containing Max (R) is an extremally disconnected space; if and only if every non-zero ideal of R is essential in a principal ideal generated by an idempotent.
متن کامل